package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.enums.PaymentType;
import com.atguigu.gmall.model.payment.PaymentInfo;

import java.util.Map;

//在生成统一下单接口时,要先生成支付表
public interface PaymentService {
    PaymentInfo insert(Long orderId, PaymentType paymentType);

    //查询订单表
    PaymentInfo selectPayment(String out_trade_no);

    //订单完成后 对支付表进行更新
    void updatePaymentInfo(Map<String, String> paramsMap);
}
